package cn.com.xuhx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

@TableName("T_USERS")
public class User implements Serializable {

    @TableId
    private Long id;

    private String name;

    private Integer age;

    private String address;

    private String tel;

    private String sfzh;

    @TableField(value = "bornDay")
    private Date bornDay;

    @TableLogic(delval = "1")
    @TableField(value = "delStatus")
    private Integer delStatus;

    public User() {
    }

    public User(Long id, String name, Integer age, String address, String tel, String sfzh, Date bornDay, Integer delStatus) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.address = address;
        this.tel = tel;
        this.sfzh = sfzh;
        this.bornDay = bornDay;
        this.delStatus = delStatus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSfzh() {
        return sfzh;
    }

    public void setSfzh(String sfzh) {
        this.sfzh = sfzh;
    }

    public Date getBornDay() {
        return bornDay;
    }

    public void setBornDay(Date bornDay) {
        this.bornDay = bornDay;
    }

    public Integer getDelStatus() {
        return delStatus;
    }

    public void setDelStatus(Integer delStatus) {
        this.delStatus = delStatus;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", tel='" + tel + '\'' +
                ", sfzh='" + sfzh + '\'' +
                ", bornDay=" + bornDay +
                ", delStatus=" + delStatus +
                '}';
    }
}
